//
//  FAI.h
//  ui
//
//  Created by 袁飞 on 12-7-19.
//
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
@class FObject;

@interface FAI : NSObject
-(void)start;
-(void)onMoveEnd;
-(void)onActionEnd:(id)sender Data:(NSString*)data;
@end

@interface FSeqAI : FAI{
  FObject *object_;
  NSMutableArray *actions_;
  int index_;
}
-(id)initWithFObject:(FObject*)obj;
-(void)onMoveEnd;
-(void)onActionEnd:(id)sender Data:(NSString*)data;
-(void)start;
-(void)performAction:(NSString*)cmd;
@end


@interface FRandomAI : FAI{
  FObject *object_;
  NSMutableArray *actions_;
}
-(id)initWithFObject:(FObject*)obj;
-(void)onMoveEnd;
-(void)onActionEnd:(id)sender Data:(NSString*)data;
-(void)randomMove;
-(void)start;
@end
